package com.ruoyi.alarm.domain;

import com.ruoyi.common.annotation.Excel;
import javax.validation.constraints.NotNull;
import lombok.Data;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 告警规则对象 alarm_rule
 *
 * @author yepanpan
 * @date 2025-03-19
 */
@Data
public class AlarmRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 自增长主键ID */
    private Long id;

    /** 规则名称 */
    @Excel(name = "规则名称")
    private String name;

    /** 告警类型 */
    @Excel(name = "告警类型")
    @NotNull
    private String alarmType;

    /** 告警设备 */
    @Excel(name = "告警设备")
    @NotNull
    private String alarmDevice;

    /** 周期(秒） */
    @Excel(name = "周期(秒）")
    private Integer alarmPeriod;

    /** 次数 */
    @Excel(name = "次数")
    private Integer alarmTimes;

    /** 触发设备 */
    @Excel(name = "触发设备")
    @NotNull
    private String triggerDevice;

    /** 录制视频 */
    @Excel(name = "录制视频", dictType="sys_yes_no", comboReadDict=true)
    @NotNull
    private String recordVideo;

    /** 规则描述 */
    @Excel(name = "规则描述")
    @NotNull
    private String comment;


}
